import request from '@/utils/modelrequest'
// 封装 GET 请求
export function get(url, params = {},config = {}) {
    return request({
		url: url,
		method: 'get',
		params,
		 ...config,
	})
}

// 封装 POST 请求
export function post(url, data = {},config = {}) {
    return request({
		url: url,
		method: 'post',
		data,
		 ...config,
	})
}

export function postscan(url, data = {},config = {}) {
    return request({
		url: url,
		method: 'post',
		data,
		 ...config,
	})
}

// 封装 DELETE 请求
export function del(url, data = {},config={}) {
    return request({
		url: url,
		method: 'delete',
		data,
		 ...config,
	})
}
export function dele(url, params = {},config={}) {
    return request({
		url: url,
		method: 'delete',
		params,
		 ...config,
	})
}

// 封装 PUT 请求
export function put(url, data = {}) {
    return request({
		url: url,
		method: 'post',
		data
	})
}
